package com.aiti.lulian.mapper;

import com.aiti.base.core.base.mapper.SuperMapper;
import com.aiti.lulian.entity.SysArea;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chl
 * @since 2022-05-12
 */
@Repository
public interface SysAreaMapper extends SuperMapper<SysArea> {

 List<SysArea> findListPage(Page page ,@Param("sysArea")SysArea sysArea);

 String getProvinceBaseId(@Param("provinceName") String provinceName);

 String getCityOrCountyBaseId(@Param("name") String name, @Param("baseParentId") String baseParentId);

 List<String> getProvinceBaseIdUseLike(@Param("provinceName") String provinceName);

 String getBaseNameByBaseId(@Param("baseId") String baseId);

}
